package sweetguy.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.time.LocalDateTime;

public class PermissionInsertDTO implements Serializable {
    /** 部门名称 */
    @NotEmpty(message = "部门名称不能为空")
    @Schema(description = "部门名称")
    private String title;

    @NotEmpty(message = "跳转地址不能为空")
    @Schema(description = "跳转地址")
    private String url;

    @NotEmpty(message = "权限图标不能为空")
    @Schema(description = "权限图标")
    private String icon;

    @NotEmpty(message = "父权限主键不能为空")
    @Schema(description = "父权限主键")
    private String pid;

    /** 部门描述 */
    private String info;
}
